﻿<Window x:Class="S7.Windows.Music.EditMusic"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:dg="http://schemas.microsoft.com/wpf/2008/toolkit"
        Closing="Window_Closing"
        Loaded="Window_Loaded"
    Title="Edit Music" Height="600" Width="900" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen" Background="{DynamicResource BackgroundColor}" FontSize="18">
    <Grid>
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="0.238*"/>
    		<ColumnDefinition Width="0.629*"/>
    		<ColumnDefinition Width="0.133*"/>
    	</Grid.ColumnDefinitions>
    	<Grid Margin="8">
    		<Label Content="Genres" HorizontalAlignment="Center" VerticalAlignment="Top"/>
    		<ListBox x:Name="lbGenres" SelectionChanged="lbGenres_SelectionChanged"  Margin="0,23.94,0,0"/>
    	</Grid>
    	<Grid Margin="8,8,0,8" Grid.Column="1">
    		<Grid Height="40" VerticalAlignment="Top">
    			<Label HorizontalAlignment="Center" Content="Music" VerticalAlignment="Center"/>
    			<TextBox x:Name="tbSearch" HorizontalAlignment="Right" KeyUp="tbSearch_KeyUp" Margin="0,8" Width="200" TextWrapping="Wrap" FontSize="12"/>
    			<Image HorizontalAlignment="Right" Width="24" Source="/S7;Component/Resources/Graphics/Search.png" Stretch="Uniform" Height="24"/>
    		</Grid>
    		<dg:DataGrid x:Name="lbSongs" Background="#FF333333" AutoGenerateColumns="False" Margin="0,40,0,0">
    			<dg:DataGrid.Columns>
    				<dg:DataGridTextColumn Header="Name" Binding="{Binding Name}"/>
    				<dg:DataGridTextColumn Header="Artist" Binding="{Binding Artist}"/>    			</dg:DataGrid.Columns>
    		</dg:DataGrid>
    	</Grid>
    	<StackPanel Grid.Column="2" VerticalAlignment="Center">
    		<Button x:Name="btnAdd" HorizontalAlignment="Right" Margin="0,0,8,24" Width="100" Content="Add" Click="btnAdd_Click"/>
    		<Button x:Name="btnRemove" HorizontalAlignment="Right" Margin="0,0,8,24" Width="100" Content="Remove" Click="btnRemove_Click"/>
    		<Button x:Name="btnRefresh" HorizontalAlignment="Right" Margin="0,0,8.02,24" Width="100" Content="Refresh" Click="btnRefresh_Click"/>
    	</StackPanel>
    </Grid>
</Window>
